<template>
<h3>子组件事件：demo08-event03-component-children01.vue</h3>
  <button class="zhtt-btn" @click="onClickNode">点击测试</button>
</template>

<script>
export default {
  setup(props,context){
    return {
      onClickNode:() => {
        context.emit("onClickNode", Math.random());// 第二个参数可选
      }
    }
  }
}
</script>